package com.java.controller;

import com.java.util.ResultVo;

public class BaseController {

    public ResultVo toVo(int rows){
        return rows>0 ? ResultVo.success() : ResultVo.failure();
    }

    public ResultVo toVo(boolean flag){
        return flag ? ResultVo.success() : ResultVo.failure();
    }

}
